﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace ExElmTest
{
    public partial class FormMain : Form
    {
        public string RetVal = "";
        bool bOK = false;

        public FormMain()
        {
            InitializeComponent();
        }

        public bool ShowDialog(string val)
        {
            bOK = false;
            txb.Text = val;
            ShowDialog();
            return bOK;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            RetVal = txb.Text;
            bOK = true;
            Close();
        }

        private void bTnCancel_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
